from django.urls import path, re_path
from django.urls.resolvers import URLPattern
from . import views
urlpatterns = [
    # 用户名重复
    re_path(r'^usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$',views.UserNameView.as_view()),
    # 手机号重复
    re_path(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileNameView.as_view()),
    # 用户注册
    path('register/', views.UserRegisterView.as_view()),

]